x86/cpu: Sysctl and common infrastructure for levelling context switching
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 31 Jul 2015 14:24:03 +0000 (15:24 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Apr 2016 20:54:21 +0000 (21:54 +0100)
commit67528a3f0649703286dba8bbba1cc2ddd3cc7a5f
tree3fa0f29a9398e7c3f29f929daca39a3c51356f59
parent36e3c8f10f3b90a92e4f5fb395fb261c1dc7ad62
x86/cpu: Sysctl and common infrastructure for levelling context switching

A toolstack needs to know how much control Xen has over the visible cpuid
values in PV guests.  Provide an explicit mechanism to query what Xen is
capable of.

This interface will currently report no capabilities.  This change is
scaffolding for future patches, which will introduce detection and switching
logic, after which the interface will report hardware capabilities correctly.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <JBeulich@suse.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
tools/flask/policy/policy/modules/xen/xen.te
xen/arch/x86/cpu/common.c
xen/arch/x86/sysctl.c
xen/include/asm-x86/cpufeature.h
xen/include/asm-x86/cpuid.h
xen/include/public/sysctl.h
xen/xsm/flask/hooks.c
xen/xsm/flask/policy/access_vectors